import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'
function _resolve(dir: string) {
    return path.resolve(__dirname, dir)
}
export default defineConfig({
    plugins: [vue()],

    css: {
        preprocessorOptions: {
            less: {
                modifyVars: {
                    hack: `true; @import (reference) "${path.resolve('src/assets/css/base.less')}";`
                },
                javascriptEnabled: true
            }
        }
    },
    server: {
        host: '0.0.0.0'
    },
    resolve: {
        alias: {
            '@': _resolve('src')
        }
    }
})
